package com.jfinal.code.eclipse.plugin.generator.strategy;
/**
 * 
 * @author yaolin
 *
 */
public class GFactory {
	
	// TODO 暂时没有更好的实现...
	public static final int JFinal = 0;
	public static final int Custom = 1;
	public static final int _10Code = 2;
	
	public static GenerateStrategy getStrategy(int type) {
		switch (type) {
		case JFinal:
			return new JFinalGenerateStrategy();
		case Custom:
			return new CustomGenerateStrategy();
		case _10Code:
			throw new RuntimeException("NPE");
		}
		return null;
	}
}
